package com.weilive.api.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.weilive.api.dao.model.UserPunishRecord;

public interface UserPunishRecordMapper {
	int deleteByPrimaryKey(Long id);

	int insert(UserPunishRecord record);

	int insertSelective(UserPunishRecord record);

	UserPunishRecord selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(UserPunishRecord record);

	int updateByPrimaryKey(UserPunishRecord record);

	@Select("select * from user_punish_record where user_id = #{userId} order by create_time desc")
	@ResultMap("com.weilive.api.dao.mapper.UserPunishRecordMapper.BaseResultMap")
	List<UserPunishRecord> getAllRecords(@Param("userId") long userId);
}